package com.jjsc.product.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: 钟城明
 * @CreateTime: 2025-10-12
 * @Description:
 * @Version: 1.0
 */
@Schema(description = "首页商品分类")
@Data
public class CategoryVo {
    @Schema(description = "分类id")
    private Long categoryId;
    @Schema(description = "分类名称")
    private String name;
    @Schema(description = "父类id")
    private Long parentId;
    @Schema(description = "分类图标")
    private String image;
    @Schema(description = "子类别")
    private List<CategoryVo> children = new ArrayList<>();
}
